﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>多列布局</title>
<link rel="stylesheet" type="text/css" href="demo.css">
<style type="text/css">
	body{margin:20px;}
	p{background: none!important;}
	.left{background: #666;}
	.right{background: #999;}

	/*table的单元格天生等高*/
	.parent{
		display: table; width: 100%;
		table-layout: fixed;
	}
	.left,.right{
		display: table-cell;
	}
	.left{
		width: 100px;
		/*利用border-right设置间距*/
		border-right: 20px solid transparent;
		/*设置背景显示范围*/
		background-clip: padding-box;
	}
</style>
</head>
<body>
<!--等高布局-->
<!--table-->
<div class="parent">
	<div class="left">
		<p>left</p>
	</div>
	<div class="right">
		<p>right</p>
		<p>right</p>
	</div>
</div>
</body>
</html>